// import Cookies from 'js-cookie'

// const TokenKey = 'vue_admin_template_token'

export function getToken(name) {
  // return Cookies.get(TokenKey)
  // return localStorage.getItem(name);
  return sessionStorage.getItem(name);
}

export function setToken(name, val) {
  // return Cookies.set(TokenKey, token)
  // return localStorage.setItem(name, val);
  return sessionStorage.setItem(name, val);
}

export function removeToken(name) {
  // return Cookies.remove(TokenKey)
  // return localStorage.removeItem(name);
  return sessionStorage.removeItem(name);
}
